package com.example.blogserver.service;

import com.example.blogserver.pojo.Article;
import com.example.blogserver.pojo.User;
import com.example.blogserver.a_utils.ResponseBodyMessage;

import javax.servlet.http.HttpServletRequest;

@SuppressWarnings({"all"})
public interface ArticleService {
    /**
     * 通过文章Id获取作者Id
     */
    ResponseBodyMessage<User> queryUserIdByBlogId(HttpServletRequest request);

    /**
     * 获取文章根据文章Id
     */
    ResponseBodyMessage<Article> getArticleByBlogId(HttpServletRequest request);

    /**
     * 对文章进行点赞
     */
    ResponseBodyMessage<Boolean> addGood(HttpServletRequest request);

    /**
     * 通过文章Id删除文章
     */
    ResponseBodyMessage<Boolean> deleteArticleByBlogId(HttpServletRequest request);


    /**
     * 管理员身份对文章进行审批
     */
    ResponseBodyMessage<String> checkArticle(HttpServletRequest request);

    void deleteDocumentById(Long id);

    void InsertOrUpdateDocumentById(Long id);


}
